package edu.hm.devcamp.communication;

import android.content.Context;
import android.content.Intent;
import android.util.Log;
import edu.hm.devcamp.providers.Poi;

public class Test {
    public static void test(Context c){
        Poi poi = new Poi();
        
        Log.d("Test", "started");
        
        poi.category = "sdfsdf";
        poi.city = "muc";
        poi.description = "desc";
        poi.externalId = "none";
        poi.latitude = 3.32f;
        poi.longitude = 4.43f;
        poi.name = "name";
        poi.openingTimes = "times";
        poi.source = "self";
        poi.street = "teststreet";
        poi.streetnumber = "xyz 123";
        poi.zipcode = "12345";
        poi.url = "http://www.andlabs.info";
        
        Intent intent = new Intent(c, PostPutDeleteService.class);
        intent.putExtra(PostPutDeleteService.POI_EXTRA, poi);
        intent.putExtra(PostPutDeleteService.METHOD_EXTRA, PostPutDeleteService.POST);
    
        c.startService(intent);
        
        Log.d("Test", "started service");
    }
}
